﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000507 RID: 1287
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ExpUpRelicCsReq : IMessage<ExpUpRelicCsReq>, IMessage, IEquatable<ExpUpRelicCsReq>, IDeepCloneable<ExpUpRelicCsReq>, IBufferMessage
	{
		// Token: 0x170010A6 RID: 4262
		// (get) Token: 0x06003A3A RID: 14906 RVA: 0x0009FF15 File Offset: 0x0009E115
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ExpUpRelicCsReq> Parser
		{
			get
			{
				return ExpUpRelicCsReq._parser;
			}
		}

		// Token: 0x170010A7 RID: 4263
		// (get) Token: 0x06003A3B RID: 14907 RVA: 0x0009FF1C File Offset: 0x0009E11C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ExpUpRelicCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170010A8 RID: 4264
		// (get) Token: 0x06003A3C RID: 14908 RVA: 0x0009FF2E File Offset: 0x0009E12E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ExpUpRelicCsReq.Descriptor;
			}
		}

		// Token: 0x06003A3D RID: 14909 RVA: 0x0009FF35 File Offset: 0x0009E135
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpRelicCsReq()
		{
		}

		// Token: 0x06003A3E RID: 14910 RVA: 0x0009FF40 File Offset: 0x0009E140
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpRelicCsReq(ExpUpRelicCsReq other) : this()
		{
			this.relicUniqueId_ = other.relicUniqueId_;
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003A3F RID: 14911 RVA: 0x0009FF8C File Offset: 0x0009E18C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpRelicCsReq Clone()
		{
			return new ExpUpRelicCsReq(this);
		}

		// Token: 0x170010A9 RID: 4265
		// (get) Token: 0x06003A40 RID: 14912 RVA: 0x0009FF94 File Offset: 0x0009E194
		// (set) Token: 0x06003A41 RID: 14913 RVA: 0x0009FF9C File Offset: 0x0009E19C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RelicUniqueId
		{
			get
			{
				return this.relicUniqueId_;
			}
			set
			{
				this.relicUniqueId_ = value;
			}
		}

		// Token: 0x170010AA RID: 4266
		// (get) Token: 0x06003A42 RID: 14914 RVA: 0x0009FFA5 File Offset: 0x0009E1A5
		// (set) Token: 0x06003A43 RID: 14915 RVA: 0x0009FFAD File Offset: 0x0009E1AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x06003A44 RID: 14916 RVA: 0x0009FFB6 File Offset: 0x0009E1B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ExpUpRelicCsReq);
		}

		// Token: 0x06003A45 RID: 14917 RVA: 0x0009FFC4 File Offset: 0x0009E1C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ExpUpRelicCsReq other)
		{
			return other != null && (other == this || (this.RelicUniqueId == other.RelicUniqueId && object.Equals(this.CostData, other.CostData) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003A46 RID: 14918 RVA: 0x000A0014 File Offset: 0x0009E214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RelicUniqueId != 0U)
			{
				num ^= this.RelicUniqueId.GetHashCode();
			}
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003A47 RID: 14919 RVA: 0x000A0069 File Offset: 0x0009E269
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003A48 RID: 14920 RVA: 0x000A0071 File Offset: 0x0009E271
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003A49 RID: 14921 RVA: 0x000A007C File Offset: 0x0009E27C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.costData_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.CostData);
			}
			if (this.RelicUniqueId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RelicUniqueId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003A4A RID: 14922 RVA: 0x000A00D8 File Offset: 0x0009E2D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RelicUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RelicUniqueId);
			}
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003A4B RID: 14923 RVA: 0x000A0130 File Offset: 0x0009E330
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ExpUpRelicCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RelicUniqueId != 0U)
			{
				this.RelicUniqueId = other.RelicUniqueId;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003A4C RID: 14924 RVA: 0x000A0198 File Offset: 0x0009E398
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003A4D RID: 14925 RVA: 0x000A01A4 File Offset: 0x0009E3A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RelicUniqueId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.costData_ == null)
					{
						this.CostData = new ItemCostData();
					}
					input.ReadMessage(this.CostData);
				}
			}
		}

		// Token: 0x040016D7 RID: 5847
		private static readonly MessageParser<ExpUpRelicCsReq> _parser = new MessageParser<ExpUpRelicCsReq>(() => new ExpUpRelicCsReq());

		// Token: 0x040016D8 RID: 5848
		private UnknownFieldSet _unknownFields;

		// Token: 0x040016D9 RID: 5849
		public const int RelicUniqueIdFieldNumber = 9;

		// Token: 0x040016DA RID: 5850
		private uint relicUniqueId_;

		// Token: 0x040016DB RID: 5851
		public const int CostDataFieldNumber = 5;

		// Token: 0x040016DC RID: 5852
		private ItemCostData costData_;
	}
}
